var http = require("http");

var options = {
    host: '127.0.0.1',
    port: 8001,
    path: '/status',
    method: 'POST',
    headers: {
        "Content-Length": 16
        
    } 
};

var req = http.request(options, function (res) {
    console.log('STATUS: ' + res.statusCode);
    console.log('HEADERS: ' + JSON.stringify(res.headers));
    res.setEncoding('utf8');
    res.on('data', function (chunk) {
        console.log('BODY: ' + chunk);
    });
});

req.on('error', function (e) {
    console.log('problem with request: ' + e.message);
});

// write data to request body
req.write('123456');


this.timeoutID = setTimeout(function () {



    req.write('1234567890');


    // }, 1000);//settings.TIMEOUT_MIN*60*1000);
}, 10000);


